import com.google.code.geocoder.Geocoder;
import com.google.code.geocoder.GeocoderRequestBuilder;
import com.google.code.geocoder.model.GeocodeResponse;
import com.google.code.geocoder.model.GeocoderRequest;
import com.google.code.geocoder.model.LatLng;
import com.google.code.geocoder.model.LatLngBounds;

public class Test {
	final static Geocoder geocoder = new Geocoder();

	public static void main(String[] args) {

		// GeocoderRequest geocoderRequest = new GeocoderRequestBuilder()
		// .setAddress("Paris, France").setLanguage("en")
		// .getGeocoderRequest();
		// GeocodeResponse geocoderResponse = geocoder.geocode(geocoderRequest);
		// System.out.println(geocoderResponse.getStatus());
		// System.out.println(geocoderResponse.toString());
		GeocoderRequest req = new GeocoderRequestBuilder().setLocation(
				new LatLng("45.4334616375363", "12.34823242530117"))
				.getGeocoderRequest();

		System.out.println(req);
		GeocodeResponse geocoderResponse = geocoder.geocode(req);
		System.out.println(geocoderResponse.toString());
	}

}
